package net.sk.china.front.dao.order;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.sk.china.common.model.order.StoreOrder;
import org.apache.ibatis.annotations.Select;

/**
 * 订单表 Mapper 接口
 * +----------------------------------------------------------------------
 * | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2018-2024 聊来All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">apache</a> )
 * +----------------------------------------------------------------------
 * | @Author: 聊来 <18970881148@qq.com>
 * +----------------------------------------------------------------------
 * | DateTime: 2024/6/12 20:53
 * +----------------------------------------------------------------------
 */
public interface StoreOrderDao extends BaseMapper<StoreOrder> {

    /**
     * 通过订单号查询数据
     * @param orderId 订单号
     * @return {@code StoreOrder}
     */
    @Select("select * from db_store_order where order_id = #{orderId} limit 1")
    StoreOrder getByOderId(String orderId);
}
